package chapter04;

/**
 * 判断文件类型
 * Created by a on 2017/6/9.
 */
public class Test069 {
    public static void main(String[] args) {
        String s = "123.t1xt";
        if (s.endsWith("txt")){
            System.out.println("txt");
        }else {
            System.out.println("无法识别");
        }
    }
}
